<layout name="layout" />
<!-- <i class="iconfont icon-diannao1"></i>
							<span>项目管理</span> -->
<!-- 搜索 -->
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>LarryBlogCMS-Home</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" type="text/css" href="/public/common/layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="/public/common/bootstrap/css/bootstrap.css" media="all">
	<link rel="stylesheet" type="text/css" href="/public/common/global.css">
	<link rel="stylesheet" type="text/css" href="/public/admin/css/main.css" media="all">
	<style>
			input[type=checkbox]:{
				visibility: hidden;
			};
			.box label{
				display: block;
				height:30px;
				width: 30px;
				background-color: gray;
			}
	</style>
</head>
<body style="background-color:#fff;">
<section class="larry-wrapper"  >
	<p 	class="layui-btn layui-btn-big">
		<i class="iconfont icon-diannao1"></i>
		项目管理
	</p>
    <!-- overview -->
<table class="layui-table" lay-skin="line" v-show="display">
  <thead>
    <tr>
      <th>创建时间</th>
      <th>项目名称/项目描述</th>
			<th>编辑</th>
    </tr>
  </thead>
  <tbody>
   <?php foreach ($data as $k => $v): ?>
    <tr>
      <td><?php echo $v['addtime']; ?></td>
      <td><?php echo $v['project_name']; ?></td>
			<td>
				<a href="<?php echo U('edit?id='.$v['id'].'&p='.I('get.p')); ?>" class="layui-btn layui-btn-small" z>
					<i class="layui-icon">&#xe642;</i>
					修改
				</a>
				<a href="<?php echo U('delete?id='.$v['id'].'&p='.I('get.p')); ?>" class="layui-btn layui-btn-small" z>
					<i class="layui-icon">&#xe640;</i>
					删除
				</a>
			</td>
    </tr>
	<?php endforeach; ?>
  </tbody>
</table>

	<!-- 修改页面 -->

</section>

<script type="text/javascript" src="/public/common/layui/layui.js"></script>
<script src="/public/admin/js/vue.js"></script>
<script type="text/javascript">
	layui.use(['jquery','layer','element'],function(){
		window.jQuery = window.$ = layui.jquery;
		window.layer = layui.layer;
        window.element = layui.element();

       $('.panel .tools .iconpx-chevron-down').click(function(){
       	   var el = $(this).parents(".panel").children(".panel-body");
       	   if($(this).hasClass("iconpx-chevron-down")){
       	   	   $(this).removeClass("iconpx-chevron-down").addClass("iconpx-chevron-up");
       	   	   el.slideUp(200);
       	   }else{
       	   	   $(this).removeClass("iconpx-chevron-up").addClass("iconpx-chevron-down");
       	   	   el.slideDown(200);
       	   }
       })
	});
	new Vue({
		data:{
			display:true
		},
		methods:{
			change:function(){
				this.display = false
			},
			back:function(){
				this.display =true;
			}
		}
	}).$mount('.larry-wrapper')
</script>
<!-- <script type="text/javascript" src="js/main.js"></script> -->
</body>
</html>
